package com.ming.seatMonitoring.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.seatMonitoring.pojo.DO.RoomInfoDO;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 小明
 * @date 2021/10/21
 * @description
 */
public interface RoomInfoService extends IService<RoomInfoDO> {

    boolean addRoomInfo(@RequestBody RoomInfoDO roomInfoDO);

    boolean deleteRoomInfo(@RequestParam int roomId);

    Page<RoomInfoDO> getRoomInfo(@RequestBody Page<RoomInfoDO> page);

    RoomInfoDO searchRoom(int roomId);

    boolean updateRoomInfo(RoomInfoDO roomInfoDO);
}
